package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 组织机构表
 *
 * @author WeiZiDong
 */
@Table(name = "`sys_depart`")
@Data
@ApiModel("组织机构表")
public class SysDepart implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID", example = "String")
    private String id;
    @Column(name = "`parent_id`")
    @ApiModelProperty(value = "父机构ID", example = "String")
    private String parentId;
    @Column(name = "`depart_name`")
    @ApiModelProperty(value = "机构/部门名称", example = "String")
    private String departName;
    @Column(name = "`depart_name_en`")
    @ApiModelProperty(value = "英文名", example = "String")
    private String departNameEn;
    @Column(name = "`depart_name_abbr`")
    @ApiModelProperty(value = "缩写", example = "String")
    private String departNameAbbr;
    @Column(name = "`depart_order`")
    @ApiModelProperty(value = "排序", example = "0")
    private Integer departOrder;
    @Column(name = "`description`")
    @ApiModelProperty(value = "描述", example = "String")
    private String description;
    @Column(name = "`org_category`")
    @ApiModelProperty(value = "机构类别1组织机构，2岗位", example = "1")
    private String orgCategory;
    @Column(name = "`org_type`")
    @ApiModelProperty(value = "机构类型1一级部门2子部门", example = "String")
    private String orgType;
    @Column(name = "`org_code`")
    @ApiModelProperty(value = "机构编码", example = "String")
    private String orgCode;
    @Column(name = "`mobile`")
    @ApiModelProperty(value = "手机号", example = "String")
    private String mobile;
    @Column(name = "`fax`")
    @ApiModelProperty(value = "传真", example = "String")
    private String fax;
    @Column(name = "`address`")
    @ApiModelProperty(value = "地址", example = "String")
    private String address;
    @Column(name = "`memo`")
    @ApiModelProperty(value = "备注", example = "String")
    private String memo;
    @Column(name = "`status`")
    @ApiModelProperty(value = "状态（1启用，0不启用）", example = "String")
    private String status;
    @Column(name = "`del_flag`")
    @ApiModelProperty(value = "删除状态（0，正常，1已删除）", example = "String")
    private String delFlag;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建日期", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新日期", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
